<?php

namespace AppBundle\EventListener;

use Symfony\Component\HttpKernel\Event\GetResponseEvent;

class RequestListener {

    public function onKernelRequest(GetResponseEvent $event){
        $request = $event->getRequest();
        if($request->getMethod() == "POST"){
           // var_dump($request->request);
            //die();
        }

        //$this->get('logger')->debug($request->getMethod());
    }
}